package com.kaishengit.action;

import java.util.List;
import java.util.Map;

import com.kaishengit.pojo.Company;
import com.kaishengit.pojo.Contact;
import com.kaishengit.pojo.IM;
import com.kaishengit.pojo.Email;
import com.kaishengit.pojo.Tel;
import com.kaishengit.pojo.UserGroup;
import com.kaishengit.pojo.Website;
import com.kaishengit.service.CompanyService;
import com.kaishengit.service.ImService;
import com.kaishengit.service.EmailService;
import com.kaishengit.service.TelService;
import com.kaishengit.service.UserGroupService;
import com.kaishengit.service.WebsiteService;
import com.opensymphony.xwork2.ActionSupport;

public class CompanyAction extends ActionSupport{

	private static final long serialVersionUID = 1L;
	private Company company;
	private Contact contact;
	private CompanyService companyService;
	private TelService telService;
	private EmailService emailService;
	private ImService imService;
	private WebsiteService websiteService;
	private String view ;
	private String grouptype;
	private String[] tel;
	private String[] teltype;
	private String[] email;
	private String[] emailtype;
	private String[] im;
	private String[] imtype;
	private String[] website;
	private String[] websitetype;
	private Map<String, Object> session;
	private List<UserGroup> groupList;
	private UserGroupService userGroupService;
	private String id;
	private List<Tel> telList;
	private List<Email> emailList;
	private List<IM> imList;
	private List<Website> websiteList;
	
	
	
	public String new_company() {
		groupList = userGroupService.findAll();
		return SUCCESS;
	}

	
	

	// set  get.......................................
	public Company getCompany() {
		return company;
	}



	public void setCompany(Company company) {
		this.company = company;
	}



	


	public Contact getContact() {
		return contact;
	}




	public void setContact(Contact contact) {
		this.contact = contact;
	}




	public CompanyService getCompanyService() {
		return companyService;
	}



	public void setCompanyService(CompanyService companyService) {
		this.companyService = companyService;
	}



	public TelService getTelService() {
		return telService;
	}



	public void setTelService(TelService telService) {
		this.telService = telService;
	}



	public EmailService getEmailService() {
		return emailService;
	}



	public void setEmailService(EmailService emailService) {
		this.emailService = emailService;
	}



	public ImService getImService() {
		return imService;
	}



	public void setImService(ImService imService) {
		this.imService = imService;
	}



	public WebsiteService getWebsiteService() {
		return websiteService;
	}



	public void setWebsiteService(WebsiteService websiteService) {
		this.websiteService = websiteService;
	}



	public String getView() {
		return view;
	}



	public void setView(String view) {
		this.view = view;
	}



	public String getGrouptype() {
		return grouptype;
	}



	public void setGrouptype(String grouptype) {
		this.grouptype = grouptype;
	}



	public String[] getTel() {
		return tel;
	}



	public void setTel(String[] tel) {
		this.tel = tel;
	}



	public String[] getTeltype() {
		return teltype;
	}



	public void setTeltype(String[] teltype) {
		this.teltype = teltype;
	}



	public String[] getEmail() {
		return email;
	}



	public void setEmail(String[] email) {
		this.email = email;
	}



	public String[] getEmailtype() {
		return emailtype;
	}



	public void setEmailtype(String[] emailtype) {
		this.emailtype = emailtype;
	}



	public String[] getIm() {
		return im;
	}



	public void setIm(String[] im) {
		this.im = im;
	}



	public String[] getImtype() {
		return imtype;
	}



	public void setImtype(String[] imtype) {
		this.imtype = imtype;
	}



	public String[] getWebsite() {
		return website;
	}



	public void setWebsite(String[] website) {
		this.website = website;
	}



	public String[] getWebsitetype() {
		return websitetype;
	}



	public void setWebsitetype(String[] websitetype) {
		this.websitetype = websitetype;
	}



	public Map<String, Object> getSession() {
		return session;
	}



	public void setSession(Map<String, Object> session) {
		this.session = session;
	}



	public List<UserGroup> getGroupList() {
		return groupList;
	}



	public void setGroupList(List<UserGroup> groupList) {
		this.groupList = groupList;
	}



	public UserGroupService getUserGroupService() {
		return userGroupService;
	}



	public void setUserGroupService(UserGroupService userGroupService) {
		this.userGroupService = userGroupService;
	}



	public String getId() {
		return id;
	}



	public void setId(String id) {
		this.id = id;
	}



	public List<Tel> getTelList() {
		return telList;
	}



	public void setTelList(List<Tel> telList) {
		this.telList = telList;
	}



	public List<Email> getEmailList() {
		return emailList;
	}



	public void setEmailList(List<Email> emailList) {
		this.emailList = emailList;
	}



	public List<IM> getImList() {
		return imList;
	}



	public void setImList(List<IM> imList) {
		this.imList = imList;
	}



	public List<Website> getWebsiteList() {
		return websiteList;
	}



	public void setWebsiteList(List<Website> websiteList) {
		this.websiteList = websiteList;
	}
	

	
	

	

	
	
	
	
}
